﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS.Infrastructure.Attr;
using WCS.Infrastructure.Dto.Request.Line;
using WCS.Infrastructure.Dto.Response.Common;

namespace WCS.Service.Interface
{

    [Provider]
    public interface ILineService
    {
        /// <summary>
        /// 新增线路打卡记录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public Task<ApiResult> AddLinePunchRecordAsync(LinePunchRecordCreateRequestDto dto);

        /// <summary>
        /// 更新线路打卡记录
        /// </summary>
        /// <param name="lineId"></param>
        /// <returns></returns>
        public Task<ApiResult> UpdateLinePunchRecordAsync(LinePunchRecordCreateRequestDto dto);

        /// <summary>
        /// 获取线路打卡记录
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="lineId"></param>
        /// <returns></returns>
        public Task<ApiResult> GetLinePunchRecordAsync(string? userId, string lineId);
    }
}
